﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package zasp.Display {
    import flash.display.*;

    public class ColorPoly extends Shape {

        private var vecX:Array;
        private var vecY:Array;

        public function ColorPoly(){
            this.vecX = new Array();
            this.vecY = new Array();
            super();
        }
        public function addPt(_arg1:Number, _arg2:Number):void{
            this.vecX.push(_arg1);
            this.vecY.push(_arg2);
        }
        public function changeColor(_arg1:int):void{
            if ((((0 == this.vecX.length)) || ((0 == this.vecY.length)))){
                return;
            };
            graphics.clear();
            graphics.lineStyle(1, _arg1);
            graphics.beginFill(_arg1);
            graphics.moveTo(this.vecX[0], this.vecY[0]);
            var _local2 = 1;
            while (_local2 < this.vecX.length) {
                graphics.lineTo(this.vecX[_local2], this.vecY[_local2]);
                _local2++;
            };
            graphics.endFill();
        }

    }
}//package zasp.Display 
